package lab.gene.history.action;

import java.util.List;

import lab.gene.pojo.GeneComments;
import lab.gene.service.impl.GeneServiceImpl;
import com.opensymphony.xwork2.ActionSupport;

public class ViewGeneCommentsHistoryAction extends ActionSupport{
	
	private static final long serialVersionUID = 1L;
	private List<GeneComments> historyList = null;
	private String geneName = null;
	public String execute() {
		GeneServiceImpl service = new GeneServiceImpl();
		historyList = service.getGeneCommentsHistory(geneName);
		return "success";
	}
	public List<GeneComments> getHistoryList() {
		return historyList;
	}
	public void setHistoryList(List<GeneComments> historyList) {
		this.historyList = historyList;
	}
	public String getGeneName() {
		return geneName;
	}
	public void setGeneName(String geneName) {
		this.geneName = geneName;
	}
}
